import { http } from "..";
export const secret = "88888888-2021-2022-2023-00000000";
/**
 * @use 用户登录
 */
export const loginApi2 = (params: any) => {
  return http.post<any>(`/login`, params);
};

/**
 * @use 获取所有设备接口
 */
export const getEquipListApi = () => {
  return http.get(`/api/general/alldeviceinfo?secret=${secret}`);
};

export const getMusicListApi = () => {
  return http.get(`/api/general/servermusicinfo?secret=${secret}`);
};

/**
 * @use 获取播放接口
 */
export const getPlayMusicAip = (data) => {
  return http.post(`/api/general/playmusicbylist`, data);
};
